package org.example.myleet.p1200;

import org.example.myleet.Utils.Assert;
import org.example.myleet.Utils.JsonUtils;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue("[[1,2],[2,3],[3,4]]".equals(JsonUtils.toJson(solution.minimumAbsDifference(new int[]{4,2,1,3}))));
        Assert.isTrue("[[1,3]]".equals(JsonUtils.toJson(solution.minimumAbsDifference(new int[]{1,3,6,10,15}))));
        Assert.isTrue("[[-14,-10],[19,23],[23,27]]".equals(JsonUtils.toJson(solution.minimumAbsDifference(new int[]{3,8,-10,23,19,-4,-14,27}))));
        Assert.isTrue("[[26,27]]".equals(JsonUtils.toJson(solution.minimumAbsDifference(new int[]{40,11,26,27,-20}))));
    }
}
